package org.eztouch.sys.biz.impl;

import java.util.Arrays;
import java.util.List;

import org.eztouch.sys.entity.SysMenu;
import org.eztouch.sys.mapper.SysMenuMapper;
import org.eztouch.sys.biz.SysMenuBiz;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 系统菜单表 服务实现类
 * </p>
 *
 * @author eztouch
 * @since 2017-07-19
 */
@Service
public class SysMenuBizImpl extends ServiceImpl<SysMenuMapper, SysMenu> implements SysMenuBiz {
	@Autowired
	private SysMenuMapper sysMenuMapper;
	
	@Override
	public List<SysMenu> listByRoleIds(String roleIdsStr) {
		List<String> roleIds = Arrays.asList(roleIdsStr.split(","));
		return sysMenuMapper.listByRoleIds(roleIds);
	}
	
}
